package model

import (
	"context"
	"github.com/LyricTian/gin-admin/v7/internal/app/schema"
)

// 查询一个值
func (a *Set) GetValue(ctx context.Context, category, key, creator string) string {
	data, _ := a.GetFirst(ctx, schema.SetQueryParam{Category: category, Key: key, Creator: creator})
	if data == nil {
		return ""
	}
	return data.Value
}

//TODO getvalue新增类型字段
